package test6_8;

public class Test1 {

    public int[] constructArr (int[] a) {
        int[] result=new int[a.length];
        for (int i = 0; i <a.length; i++) {
        int total=1;
            for (int j = 0; j <a.length ; j++) {
                if (j!=i){
                    total*=a[j];
                }
            }
            result[i]=total;
            
            
        }
        return  result;

    }
}
